package com.zenith.yasoo.setup;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.zui.base.BaseEntity;





@Entity
@Table(name="uom_type")
public class UomType extends BaseEntity {
	private static final long serialVersionUID = 1L;
	@Id
	@Column(length=20)
	private String uomTypeId;
	@Column(length=1)
	private String hasTable;
	@OneToOne
	@JoinColumn(name="parentUomTypeId")
	private UomType parentUomType;
	
	/**
	 * @return the uomTypeId
	 */
	public String getUomTypeId() {
		return uomTypeId;
	}
	/**
	 * @param uomTypeId the uomTypeId to set
	 */
	public void setUomTypeId(String uomTypeId) {
		this.uomTypeId = uomTypeId;
	}
	/**
	 * @return the parentUomType
	 */
	public UomType getParentUomType() {
		return parentUomType;
	}
	/**
	 * @param parentUomType the parentUomType to set
	 */
	public void setParentUomType(UomType parentUomType) {
		this.parentUomType = parentUomType;
	}
	/**
	 * @return the hasTable
	 */
	public String getHasTable() {
		return hasTable;
	}
	/**
	 * @param hasTable the hasTable to set
	 */
	public void setHasTable(String hasTable) {
		this.hasTable = hasTable;
	}

	

	
}
